from google.appengine.ext import db

class Discussion(db.Model):

    title = db.StringProperty()
    description = db.TextProperty()
    content = db.TextProperty()
    imagelink = db.LinkProperty()
    type = db.StringProperty()
    enabled = db.BooleanProperty(True)
    topiccount = db.IntegerProperty(default=0)
    commentcount = db.IntegerProperty(default=0)

    def getKey(self):
        return self.key()

    def isValid(self):
        return True







